package com.cbd.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.sql.Timestamp;

/**
 * @author BingBing
 * @desc
 * @date 2024/11/21 11:43
 */
@Data                            //lombok---自动创建get、set等方法
@NoArgsConstructor                //lombok---无参构造
@AllArgsConstructor                //lombok---全参构造
@Accessors(chain = true)		//开启链式编程
@TableName("user")
public class UserEmailDto {
    //主键自增
    @TableId(type= IdType.AUTO)
    private Integer userid;         		//登录账号
    private String name;            		//姓名
    private String password;        		//密码
    private String repassword;      		//确认密码
    private String sex;             		//性别
    private String idno;            		//身份证号码
    private Integer userVerificationCode; 	//验证码
    private Integer userActivationCode; 	//激活码
    private String email;             		//邮箱
    private String tel;             		//联系电话
    private Integer vipid;          		//vip标志id
    private Integer permissionid;   		//权限标志id
    private boolean status;					//状态：0 未激活 1激活
    //日期出参格式化
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp registerdata;      	//注册时间


    @TableField(exist = false)         		//不是数据表格中固有的属性
    private String vipname;          		//vip标志名称

    @TableField(exist = false)         		//不是数据表格中固有的属性
    private String permissionname; 			//权限标志名称
}
